//
//  ViewController.m
//  XML解析作业
//
//  Created by dllo on 16/8/10.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "SAXXMLParser.h"
#import "AlbumInfoModel.h"

@interface ViewController ()

@property (nonatomic, strong) NSArray *arr;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.arr = [SAXXMLParser saxXmlParserWithXMLFile:@"Cartoon" fileType:@"xml"];
    NSLog(@"arr: %@", self.arr);
    for (AlbumInfoModel *albumInfo in self.arr) {
        NSLog(@"%@, %@, %@, %@, %@, %@, %@, %@, %@, %@, %@, %@, %@, %@", albumInfo.actors, albumInfo.area, albumInfo.albumId, albumInfo.agegroup, albumInfo.albumCode, albumInfo.superAlbumId, albumInfo.channelId, albumInfo.categories, albumInfo.cartoonType, albumInfo.commentCount, albumInfo.currentUpdate, albumInfo.desc, albumInfo.digTimes, albumInfo.shortDesc);
    }
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}


@end
